import React from 'react';
function Input(props) {
  let { value, onChange, onSubmit } = props;
  return <div>
    自己的input
    <input
      type="text"
      value={value}
      onChange={onChange}
      onKeyDown={e => { if (e.keyCode == 13) onSubmit(e) }}
    />
  </div>
}


export default Input